package com.keba.lamp.system.vo.update.application;

import com.keba.basic.base.entity.SuperEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 租户的资源
 * </p>
 *
 * @author zuihou
 * @since 2021-09-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@Schema(description = "租户的资源")
public class DefTenantResourceRelUpdateVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 租户ID
     */
    @Schema(description = "租户ID")
    @NotNull(message = "请填写租户ID")
    private Long tenantId;
    /**
     * 应用Id
     */
    @Schema(description = "应用Id")
    @NotNull(message = "请填写应用Id")
    private Long applicationId;
    /**
     * 资源ID
     */
    @Schema(description = "资源ID")
    @NotNull(message = "请填写资源ID")
    private Long resourceId;
}
